package day20170414.ch01;

import org.junit.Test;

public class TigerAndFoxTest{
	@Test
	public void testName() throws Exception {
		
		//狐狸
		Animal fox = new TigerAndFox();
		fox.init("狐狸", 10);
		fox.run();
		
		//老虎
		Animal tiger = new TigerAndFox();
		tiger.init("老虎", 20);
		tiger.run();
	}

}
